
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>注册提醒</title>
	
</head>
<body>

	<div align="center">
		恭喜您,成为凡客家族的一员<span id="time">5</span>秒后回到 首页<br>
		若5秒后，没有跳转<a href="/">点击这里</a>

	</div>
	<!-- <input type="text" value="5" id="time"/> -->
	{{-- 五秒自动跳转 --}}
	<script type="text/javascript"> 
		var t = 5; 
		function countDown(){ 
		var time = document.getElementById("time"); 
		t--; 
		//time.value=t;
		time.innerHTML = t;
		if (t<=0) { 
		location.href="/"; 
		clearInterval(inter); 
		}; 
		} 
		var inter = setInterval("countDown()",1000); 
		//window.onload=countDown; 
	</script> 

	@extends('layout.home')

@section('title')
	<title>注册提醒 - VANCL凡客诚品</title>
	 <link href="http://cssx.vanclimg.com/404/404.css?20120316" rel="stylesheet" type="text/css" />

@endsection

@section('content')
    
    
    <div class="sls">
        <h1>
            恭喜</h1>
        <p>
            去这看看：<span class="return"><a href="http://www.vancl.com/" style="color: #fff; text-decoration: none;">返回首页</a></span>
            <span class="contact"><a href="http://q.vancl.com/group/52814784" style="color: #484949;
                text-decoration: none;">联系客服</a></span></p>
        <div class="time">
            <span class="qian" id="sec">5</span>秒后自动转入首页</div>
    </div>

    
<script type="text/javascript">
     function clearCookie(cookieName) {
        var date = new Date();
        date.setTime(date.getTime() - 1);
        var cookie = cookieName + "=; path=/; domain=vanclimg.com";
        cookie += "; expires=" + date.toGMTString();
        document.cookie = cookie;
    }

    function lazyGo() {
        var sec = $("#sec").text();
        $("#sec").text(--sec);
        if (sec > 0)
            setTimeout("lazyGo();", 1000);
        else
            window.location.href = "http://www.vancl.com";
    }

    $(function () {
        $("img[original]").lazyload();
        var cookies = document.cookie.split(';');
        for (i = 0; i < cookies.length; i++) {
            var tempCookie = cookies[i];
            if (tempCookie != "") {
                var cookieName = tempCookie.substr(0, tempCookie.indexOf('='));
                clearCookie(cookieName);
            }
        }
        setTimeout("lazyGo();", 1000);
    });
 </script>
@endsection

</body>
</html>